import http from '@/plugins/axios'

export function getEmailStatus() {
  return http({
    method: 'POST',
    url: '/sys/email/getEmailStatus',
  })
}

export function getEmailList(data) {
  return http({
    method: 'POST',
    url: '/sys/email/emailPage',
    data
  })
}

export function addEmailApi(data) {
  return http({
    method: 'POST',
    url: '/sys/emailConfig/save',
    data
  })
}

export function getEmailDetai(data) {
  return http({
    method: 'POST',
    url: '/sys/email/getEmailInfo',
    data
  })
}

export function getBindEmail(data) {
  return http({
    method: 'POST',
    url: '/sys/emailConfig/page',
    data
  })
}

export function deleteBindEmail(data) {
  return http({
    method: 'POST',
    url: '/sys/emailConfig/delete',
    data
  })
}
